package com.bdqn.tsyyds;

import com.bdqn.tsyyds.entity.BookCategory;
import com.bdqn.tsyyds.entity.Permission;
import com.bdqn.tsyyds.repository.BookCategoryRepostiory;
import com.bdqn.tsyyds.repository.PermissionRepository;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;
import java.util.List;

@RunWith(SpringRunner.class)
@SpringBootTest
public class Book_category {
    @Resource
    BookCategoryRepostiory bookCategoryRepostiory;

    @Test
    public void all(){
        List<BookCategory> bookCategories = bookCategoryRepostiory.findAll();
        for (BookCategory bookCategory : bookCategories) {
            System.out.println(bookCategory.getBookCategoryName());
        }
    }
}
